package com.zidongxiangxi.rabbit.starter.entity.consumer;

/**
 * 顺序消费配置
 *
 * @author chenxudong
 * @date 2020/11/08
 */
public class ReliableRabbitConsumerSequence {
	/**
	 * 是否开启顺序消费
	 */
	private boolean enabled = false;

	/**
	 * 无法顺序消费时，consumeFailDelay毫秒后可以被强行消费
	 * 设置小于等于0的值，会采用系统默认值，10000ms
	 */
	private int consumeFailDelay = 10000;

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public int getConsumeFailDelay() {
		return consumeFailDelay;
	}

	public void setConsumeFailDelay(int consumeFailDelay) {
		this.consumeFailDelay = consumeFailDelay;
	}
}
